package rak.r91.controller;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;
import org.springframework.web.servlet.ModelAndView;


@Controller
@SessionAttributes("user")
public class FrontController{	
	
	@RequestMapping("/index")
	public ModelAndView showIndex(HttpServletRequest arg0, HttpServletResponse arg1) throws Exception {
		Map<String, Object> myModel = new HashMap<String, Object>();
		System.out.println("jõudis serverisse");
		return new ModelAndView("success");
	}
}
